package org.hismig.migration.executor.ext;

import java.util.concurrent.ExecutionException;

import javax.sql.DataSource;

import org.hismig.cfg.ExtExecutor;
import org.hismig.migration.Context;
import org.hismig.migration.result.ResultInfo;
import org.hismig.partition.IDynamicPartition;

/**
 * @declare: //TODO <br />
 *           This class created by Vansion.Hopihit on 2012-07-04 <br />
 *           <a href="mailto:vansionhopihit@gmail.com">Contact Me</a>
 * @version 1.0
 * @author Vansion.Hopihit
 * 
 */
public interface IExtExecutor {

	public ResultInfo execute(Context context) throws ExecutionException;

	public void setDataSource(DataSource dataSource);

	public void setDynamicPartition(IDynamicPartition dynamicPartition);

	public void setExtExecutor(ExtExecutor extExecutor);
	
	public ExtExecutor getExtExecutor();
}
